package exception;

/**
 *  异常的抛出
 */
public class ThrowDemo {
    public static void main(String[] args) throws Exception {
        Person p = new Person();
        try {
            p.setAge(2000);
        } catch (IllegalAgeException e) {
            throw new Exception();
        }
        System.out.println("此人年龄:"+p.getAge());
    }
}





